Whamcloud - gitweb
Fix problems with new write_record() interface:
authoradilger <adilger>
Wed, 16 Jul 2003 15:01:38 +0000 (15:01 +0000)
committeradilger <adilger>
Wed, 16 Jul 2003 15:01:38 +0000 (15:01 +0000)
commit7cc2cbbff39932b0dc7ddc0416a10dccdd1823da
treed7af201cd8416a7f006ce0de92b713ce2ac8618b
parent32ef68cd5a3b091ecc1e458ef1faa900329bdde6
Fix problems with new write_record() interface:
- we were not incrementing the size properly
  - block > i_size >> blkbits was never true when it needed to be
  - new size was always 1 block too small
- when size was set, it didn't make it to disk, because
  ext3_get_block_handle() updated size after marking the inode dirty

Proper fix is to move i_disksize update into ext3_splice_branch(), so that
it is done before inode is marked dirty.  For now, we mark inode dirty
again in fsfilt, so we don't need a new kernel for Wed LLNL debug shot.

Make fsfilt_ext3 and fsfilt_extN identical again (cosmetic changes only).
lustre/include/linux/lustre_fsfilt.h
lustre/obdclass/fsfilt_ext3.c