ext2: Match up ext2_put_page() with ext2_dotdot() and ext2_find_entry()
authorIra Weiny <ira.weiny@intel.com>
Mon, 29 Mar 2021 06:54:01 +0000 (23:54 -0700)
committerJan Kara <jack@suse.cz>
Wed, 31 Mar 2021 11:02:08 +0000 (13:02 +0200)
commite2ebb1230455985df6aa45835a451a5404eddd8d
tree1b1f3112817b44e867a8f4903ade3e1e4adb5e87
parente312c97ea253f076f11ac38cbe81075a48557f65
ext2: Match up ext2_put_page() with ext2_dotdot() and ext2_find_entry()

ext2_dotdot() and ext2_find_entry() both require ext2_put_page() to be
called after successful return.  For some of the calls this
corresponding put was hidden in ext2_set_link and ext2_delete_entry().

Match up ext2_put_page() with ext2_dotdot() and ext2_find_entry() in the
functions which call them.  This makes the code easier to follow
regarding the get/put of the page.

Clean up comments to match new behavior.

To: Jan Kara <jack@suse.com>
Link: https://lore.kernel.org/r/20210329065402.3297092-2-ira.weiny@intel.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/dir.c
fs/ext2/namei.c