aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-04-21 16:45:54 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-04-21 16:45:54 -0400
commit13fca323e9a8b63c08de7a4e05d3c702516b535d (patch)
tree1dcce50172dc6561d1509abfdaf1f602a9c904f1 /fs/ext4/inode.c
parent877f962c5edacfef60ab21cfed6d8d54ce25b8a6 (diff)
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.c6
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:
1080/* For write_end() in data=journal mode */ 1080/* For write_end() in data=journal mode */
1081static int write_end_fn(handle_t *handle, struct buffer_head *bh) 1081static int write_end_fn(handle_t *handle, struct buffer_head *bh)
1082{ 1082{
1083 int ret;
1083 if (!buffer_mapped(bh) || buffer_freed(bh)) 1084 if (!buffer_mapped(bh) || buffer_freed(bh))
1084 return 0; 1085 return 0;
1085 set_buffer_uptodate(bh); 1086 set_buffer_uptodate(bh);
1086 return ext4_handle_dirty_metadata(handle, NULL, bh); 1087 ret = ext4_handle_dirty_metadata(handle, NULL, bh);
1088 clear_buffer_meta(bh);
1089 clear_buffer_prio(bh);
1090 return ret;
1087} 1091}
1088 1092
1089/* 1093/*