diff options
author | Theodore Ts'o <tytso@mit.edu> | 2013-04-21 16:45:54 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-21 16:45:54 -0400 |
commit | 13fca323e9a8b63c08de7a4e05d3c702516b535d (patch) | |
tree | 1dcce50172dc6561d1509abfdaf1f602a9c904f1 /fs/ext4/inode.c | |
parent | 877f962c5edacfef60ab21cfed6d8d54ce25b8a6 (diff) | |
download | linux-13fca323e9a8b63c08de7a4e05d3c702516b535d.tar.gz linux-13fca323e9a8b63c08de7a4e05d3c702516b535d.tar.bz2 linux-13fca323e9a8b63c08de7a4e05d3c702516b535d.zip |
ext4: mark metadata blocks using bh flags
This allows metadata writebacks which are issued via block device
writeback to be sent with the current write request flags.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 62492e954483..d7518e2728f1 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -1080,10 +1080,14 @@ retry_journal: /* For write_end() in data=journal mode */ static int write_end_fn(handle_t *handle, struct buffer_head *bh) { + int ret; if (!buffer_mapped(bh) || buffer_freed(bh)) return 0; set_buffer_uptodate(bh); - return ext4_handle_dirty_metadata(handle, NULL, bh); + ret = ext4_handle_dirty_metadata(handle, NULL, bh); + clear_buffer_meta(bh); + clear_buffer_prio(bh); + return ret; } /* |