diff options
author | jhb <jhb@FreeBSD.org> | 2011-04-28 14:27:17 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-04-28 14:27:17 +0000 |
commit | 574178d5e64458a7d476b3ea904f91a72301bfa4 (patch) | |
tree | 5c411cd76f416c4ad8905361c5890b5ff3a6729c /sys/fs/ext2fs/inode.h | |
parent | bc631ee68ae9daba50a7e7580cf277699922168f (diff) | |
download | FreeBSD-src-574178d5e64458a7d476b3ea904f91a72301bfa4.zip FreeBSD-src-574178d5e64458a7d476b3ea904f91a72301bfa4.tar.gz |
Sync with several changes in UFS/FFS:
- 77115: Implement support for O_DIRECT.
- 98425: Fix a performance issue introduced in 70131 that was causing
reads before writes even when writing full blocks.
- 98658: Rename the BALLOC flags from B_* to BA_* to avoid confusion with
the struct buf B_ flags.
- 100344: Merge the BA_ and IO_ flags so so that they may both be used in
the same flags word. This merger is possible by assigning the IO_ flags
to the low sixteen bits and the BA_ flags the high sixteen bits.
- 105422: Fix a file-rewrite performance case.
- 129545: Implement IO_INVAL in VOP_WRITE() by marking the buffer as
"no cache".
- Readd the DOINGASYNC() macro and use it to control asynchronous writes.
Change i-node updates to honor DOINGASYNC() instead of always being
synchronous.
- Use a PRIV_VFS_RETAINSUGID check instead of checking cr_uid against 0
directly when deciding whether or not to clear suid and sgid bits.
Submitted by: Pedro F. Giffuni giffunip at yahoo
Diffstat (limited to 'sys/fs/ext2fs/inode.h')
-rw-r--r-- | sys/fs/ext2fs/inode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/fs/ext2fs/inode.h b/sys/fs/ext2fs/inode.h index ae794d7..92a84ac 100644 --- a/sys/fs/ext2fs/inode.h +++ b/sys/fs/ext2fs/inode.h @@ -158,6 +158,9 @@ struct indir { #define VTOI(vp) ((struct inode *)(vp)->v_data) #define ITOV(ip) ((ip)->i_vnode) +/* Check whether the MNTK_ASYNC flag has been set for a mount point */ +#define DOINGASYNC(vp) ((vp)->v_mount->mnt_kern_flag & MNTK_ASYNC) + /* This overlays the fid structure (see mount.h). */ struct ufid { uint16_t ufid_len; /* Length of structure. */ |