Simplify the logic to enter VFS_EXTATTRCTL().
Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
This commit is contained in:
parent
d03db4290d
commit
956fc3f8a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101128
@ -3518,13 +3518,8 @@ extattrctl(td, uap)
|
||||
return (error);
|
||||
}
|
||||
|
||||
if (uap->attrname != NULL) {
|
||||
error = VFS_EXTATTRCTL(mp, uap->cmd, filename_vp,
|
||||
uap->attrnamespace, attrname, td);
|
||||
} else {
|
||||
error = VFS_EXTATTRCTL(mp, uap->cmd, filename_vp,
|
||||
uap->attrnamespace, NULL, td);
|
||||
}
|
||||
error = VFS_EXTATTRCTL(mp, uap->cmd, filename_vp, uap->attrnamespace,
|
||||
uap->attrname != NULL ? attrname : NULL, td);
|
||||
|
||||
vn_finished_write(mp_writable);
|
||||
/*
|
||||
|
@ -3518,13 +3518,8 @@ extattrctl(td, uap)
|
||||
return (error);
|
||||
}
|
||||
|
||||
if (uap->attrname != NULL) {
|
||||
error = VFS_EXTATTRCTL(mp, uap->cmd, filename_vp,
|
||||
uap->attrnamespace, attrname, td);
|
||||
} else {
|
||||
error = VFS_EXTATTRCTL(mp, uap->cmd, filename_vp,
|
||||
uap->attrnamespace, NULL, td);
|
||||
}
|
||||
error = VFS_EXTATTRCTL(mp, uap->cmd, filename_vp, uap->attrnamespace,
|
||||
uap->attrname != NULL ? attrname : NULL, td);
|
||||
|
||||
vn_finished_write(mp_writable);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user