Linux 2.6.29 compat, credentials
The .sync_fs fix as applied did not use the updated SPL credential
API. This broke builds on Debian Lenny, this change applies the
needed fix to use the portable API. The original credential changes
are part of commit 81e97e2187
.
This commit is contained in:
parent
9b1d6001bc
commit
0d3ac5e735
|
@ -107,12 +107,12 @@ zpl_put_super(struct super_block *sb)
|
||||||
static int
|
static int
|
||||||
zpl_sync_fs(struct super_block *sb, int wait)
|
zpl_sync_fs(struct super_block *sb, int wait)
|
||||||
{
|
{
|
||||||
cred_t *cr;
|
cred_t *cr = CRED();
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
cr = (cred_t *)get_current_cred();
|
crhold(cr);
|
||||||
error = -zfs_sync(sb, wait, cr);
|
error = -zfs_sync(sb, wait, cr);
|
||||||
put_cred(cr);
|
crfree(cr);
|
||||||
ASSERT3S(error, <=, 0);
|
ASSERT3S(error, <=, 0);
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
|
|
Loading…
Reference in New Issue