]> Git Repo - linux.git/commit - fs/gfs2/aops.c
GFS2: Adding missing unlock_page()
authorMaxim <[email protected]>
Mon, 14 Mar 2011 13:19:21 +0000 (13:19 +0000)
committerSteven Whitehouse <[email protected]>
Mon, 14 Mar 2011 13:19:21 +0000 (13:19 +0000)
commit6c474f7bc1ef70bc05ce486e7e7e524124122de8
treec052a112e8719fdc8e72cf857be3ceaf183a6ac5
parentc618e87a5fd02aaad006c12d5a80a231dfa39250
GFS2: Adding missing unlock_page()

gfs2_write_begin() calls grab_cache_page_write_begin() that returns *locked*
page. Correspondent error-handling path lacks for unlock_page() call:

> out:
>  if (error == 0)
>  return 0;
>
>  page_cache_release(page);

The whole system hangs if gfs2_unstuff_dinode() called from gfs2_write_begin()
failed for some reason.

Reported-by: Maxim <[email protected]>
Signed-off-by: Maxim <[email protected]>
Signed-off-by: Steven Whitehouse <[email protected]>
fs/gfs2/aops.c
This page took 0.071919 seconds and 4 git commands to generate.