diff options
author | Dave Kleikamp <dave.kleikamp@oracle.com> | 2015-07-15 13:53:19 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.com> | 2015-07-23 20:59:39 +0200 |
commit | acc84b05b1f463952a638689335ca47e70d5ea30 (patch) | |
tree | 477ad20902b4f9d3595950002d429808c1387c30 /fs/jfs/jfs_inode.c | |
parent | 2e6c97ea4ce6a29941da46d03183c2c0e330fb2f (diff) | |
download | op-kernel-dev-acc84b05b1f463952a638689335ca47e70d5ea30.zip op-kernel-dev-acc84b05b1f463952a638689335ca47e70d5ea30.tar.gz |
jfs: Handle error from dquot_initialize()
dquot_initialize() can now return error. Handle it where possible
Slightly modified by Dave Kleikamp due to needed jfs_rename() error path
fix.
Signed-off-by: Jan Kara <jack@suse.com>
Reviewed-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Diffstat (limited to 'fs/jfs/jfs_inode.c')
-rw-r--r-- | fs/jfs/jfs_inode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/jfs/jfs_inode.c b/fs/jfs/jfs_inode.c index 6b0f816..cf7936f 100644 --- a/fs/jfs/jfs_inode.c +++ b/fs/jfs/jfs_inode.c @@ -109,7 +109,9 @@ struct inode *ialloc(struct inode *parent, umode_t mode) /* * Allocate inode to quota. */ - dquot_initialize(inode); + rc = dquot_initialize(inode); + if (rc) + goto fail_drop; rc = dquot_alloc_inode(inode); if (rc) goto fail_drop; |