diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-16 22:19:33 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-16 22:19:33 -0400 |
| commit | 84588e7a5d8220446d677d7b909a20ee7a4496b9 (patch) | |
| tree | 5633f76cba4788cb2b073ac0c0f93541c267e7ee /fs/ext3 | |
| parent | a39ef1a7c6093bbd4e0a8197350b99cd635e5446 (diff) | |
| parent | 3adc12e9648291149a1e3f354d0ad158fc2571e7 (diff) | |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull quota and udf updates from Jan Kara:
"The pull contains quota changes which complete unification of XFS and
VFS quota interfaces (so tools can use either interface to manipulate
any filesystem). There's also a patch to support project quotas in
VFS quota subsystem from Li Xi.
Finally there's a bunch of UDF fixes and cleanups and tiny cleanup in
reiserfs & ext3"
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: (21 commits)
udf: Update ctime and mtime when directory is modified
udf: return correct errno for udf_update_inode()
ext3: Remove useless condition in if statement.
vfs: Add general support to enforce project quota limits
reiserfs: fix __RASSERT format string
udf: use int for allocated blocks instead of sector_t
udf: remove redundant buffer_head.h includes
udf: remove else after return in __load_block_bitmap()
udf: remove unused variable in udf_table_free_blocks()
quota: Fix maximum quota limit settings
quota: reorder flags in quota state
quota: paranoia: check quota tree root
quota: optimize i_dquot access
quota: Hook up Q_XSETQLIM for id 0 to ->set_info
xfs: Add support for Q_SETINFO
quota: Make ->set_info use structure with neccesary info to VFS and XFS
quota: Remove ->get_xstate and ->get_xstatev callbacks
gfs2: Convert to using ->get_state callback
xfs: Convert to using ->get_state callback
quota: Wire up Q_GETXSTATE and Q_GETXSTATV calls to work with ->get_state
...
Diffstat (limited to 'fs/ext3')
| -rw-r--r-- | fs/ext3/super.c | 2 | ||||
| -rw-r--r-- | fs/ext3/xattr.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index d4dbf3c259b3..f037b4b27300 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
| @@ -789,7 +789,7 @@ static const struct quotactl_ops ext3_qctl_operations = { | |||
| 789 | .quota_on = ext3_quota_on, | 789 | .quota_on = ext3_quota_on, |
| 790 | .quota_off = dquot_quota_off, | 790 | .quota_off = dquot_quota_off, |
| 791 | .quota_sync = dquot_quota_sync, | 791 | .quota_sync = dquot_quota_sync, |
| 792 | .get_info = dquot_get_dqinfo, | 792 | .get_state = dquot_get_state, |
| 793 | .set_info = dquot_set_dqinfo, | 793 | .set_info = dquot_set_dqinfo, |
| 794 | .get_dqblk = dquot_get_dqblk, | 794 | .get_dqblk = dquot_get_dqblk, |
| 795 | .set_dqblk = dquot_set_dqblk | 795 | .set_dqblk = dquot_set_dqblk |
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index c6874be6d58b..24215dc09a18 100644 --- a/fs/ext3/xattr.c +++ b/fs/ext3/xattr.c | |||
| @@ -546,8 +546,7 @@ ext3_xattr_set_entry(struct ext3_xattr_info *i, struct ext3_xattr_search *s) | |||
| 546 | free += EXT3_XATTR_LEN(name_len); | 546 | free += EXT3_XATTR_LEN(name_len); |
| 547 | } | 547 | } |
| 548 | if (i->value) { | 548 | if (i->value) { |
| 549 | if (free < EXT3_XATTR_SIZE(i->value_len) || | 549 | if (free < EXT3_XATTR_LEN(name_len) + |
| 550 | free < EXT3_XATTR_LEN(name_len) + | ||
| 551 | EXT3_XATTR_SIZE(i->value_len)) | 550 | EXT3_XATTR_SIZE(i->value_len)) |
| 552 | return -ENOSPC; | 551 | return -ENOSPC; |
| 553 | } | 552 | } |
