ext4: use ext4_update_inode_fsync_trans() helper in inode creation
authorLuis Henriques (SUSE) <luis.henriques@linux.dev>
Mon, 27 May 2024 16:14:47 +0000 (17:14 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 5 Jul 2024 20:48:54 +0000 (16:48 -0400)
commit2d4d6bda0f7ba0f188a22698855a1397c8999df3
tree24bfe65057bfe66f6a453e90faba3a8fc9499d8f
parent7378e8991a459f3e5672e4b06bf346adce062fd8
ext4: use ext4_update_inode_fsync_trans() helper in inode creation

Call helper function ext4_update_inode_fsync_trans() instead of open
coding it in __ext4_new_inode().  This helper checks both that the handle
is valid *and* that it hasn't been aborted due to some fatal error in the
journalling layer, using is_handle_aborted().

Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Link: https://patch.msgid.link/20240527161447.21434-1-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ialloc.c