Re: [PATCH 4/29] let fat handle MS_SYNCHRONOUS flag

From: Christoph Hellwig
Date: Sun Mar 06 2005 - 18:14:48 EST


> mark_buffer_dirty(bh);
> + if (sb->s_flags & MS_SYNCHRONOUS)
> + sync_dirty_buffer(bh);

These three lines are duplicated a lot. I think you want a helper ala:

static inline void fat_buffer_modified(struct super_block *sb,
struct buffer_head *bh)
{
mark_buffer_dirty(bh);
if (sb->s_flags & MS_SYNCHRONOUS)
sync_dirty_buffer(bh);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/