Whamcloud - gitweb
LU-1676 quota: missing vfs_dq_init() in write path
authorNiu Yawei <niu@whamcloud.com>
Thu, 26 Jul 2012 08:32:58 +0000 (04:32 -0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 2 Sep 2012 16:39:27 +0000 (12:39 -0400)
commit7491d0ae6e3ed026b9a079c2d5f2ebffd33db542
tree350ae5d2f69ca41c7fc67fddbf6f055fae35edec
parenta24ad3343f51c5b0e52352571db94332c78e2b6e
LU-1676 quota: missing vfs_dq_init() in write path

Calling vfs_dq_init() in the osd_write_commit(), otherwise space
won't be accounted for the existing inode.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I9671ee9865449dd298139d7668ab17d3d58f8866
Reviewed-on: http://review.whamcloud.com/3476
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <tappro@whamcloud.com>
lustre/osd-ldiskfs/osd_io.c
lustre/tests/sanity-quota.sh