Fix bug in put_file() and __file_invalidate_cache()
authorJens Axboe <jens.axboe@oracle.com>
Wed, 28 May 2008 08:54:01 +0000 (10:54 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 28 May 2008 08:54:01 +0000 (10:54 +0200)
commita5fb461fdff86c442daeebbd28e07984be9f3807
tree20c1244785c7a09b0d71e409eb6555ba246eca3c
parente4dad9c614d7f6842b0efefbae3ca0fa540cad0a
Fix bug in put_file() and __file_invalidate_cache()

- put_file() has bad logic in detecting fsync() error, only set
  ret to f_ret if f_ret indicates failure.
- Check for open file in __file_invalidate_cache()

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c