search for: fsync_inode_buff

Displaying 2 results from an estimated 2 matches for "fsync_inode_buff".

2004 Jun 06
1
[PATCH] use sb_getblk
...FS_GET_BLOCKDEV(sb) ((sb)->s_bdev) #else /* 2.4 kernel */ -typedef kdev_t ocfs_blockdev; typedef int ocfs_dev; #define OCFS_NODEV NODEV -#define OCFS_GET_BLOCKDEV(sb) ((sb)->s_dev) #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) /* No longer exists in 2.5 */ #define fsync_inode_buffers(inode) sync_mapping_buffers(inode->i_mapping) -#define getblk(dev, blk, sz) __getblk(dev, blk, sz) #endif /* >= 2.6.0 */ #define OCFS_SB(sb) ((ocfs_super *)OCFS_GENERIC_SB_MEMBER(sb)) @@ -617,11 +612,7 @@ struct semaphore s_sem; struct list_head s_list; unsigned long s_block...
2002 Dec 01
3
data corrupting bug in 2.4.20 ext3, data=journal
...e fix is to only apply the optimisation to inodes which are operating under data=ordered. --- linux-akpm/fs/ext3/fsync.c~ext3-fsync-fix Sat Nov 30 23:37:33 2002 +++ linux-akpm-akpm/fs/ext3/fsync.c Sat Nov 30 23:39:30 2002 @@ -63,10 +63,12 @@ int ext3_sync_file(struct file * file, s */ ret = fsync_inode_buffers(inode); - /* In writeback mode, we need to force out data buffers too. In - * the other modes, ext3_force_commit takes care of forcing out - * just the right data blocks. */ - if (test_opt(inode->i_sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA) + /* + * If the inode is under ordered-data...