|
@@ -72,6 +72,7 @@ enum layoutdriver_policy_flags {
|
|
|
/* Should the pNFS client commit and return the layout upon a setattr */
|
|
|
PNFS_LAYOUTRET_ON_SETATTR = 1 << 0,
|
|
|
PNFS_LAYOUTRET_ON_ERROR = 1 << 1,
|
|
|
+ PNFS_READ_WHOLE_PAGE = 1 << 2,
|
|
|
};
|
|
|
|
|
|
struct nfs4_deviceid_node;
|
|
@@ -369,6 +370,14 @@ pnfs_ld_layoutret_on_setattr(struct inode *inode)
|
|
|
PNFS_LAYOUTRET_ON_SETATTR;
|
|
|
}
|
|
|
|
|
|
+static inline bool
|
|
|
+pnfs_ld_read_whole_page(struct inode *inode)
|
|
|
+{
|
|
|
+ if (!pnfs_enabled_sb(NFS_SERVER(inode)))
|
|
|
+ return false;
|
|
|
+ return NFS_SERVER(inode)->pnfs_curr_ld->flags & PNFS_READ_WHOLE_PAGE;
|
|
|
+}
|
|
|
+
|
|
|
static inline bool
|
|
|
pnfs_layoutcommit_outstanding(struct inode *inode)
|
|
|
{
|
|
@@ -444,6 +453,12 @@ pnfs_ld_layoutret_on_setattr(struct inode *inode)
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+static inline bool
|
|
|
+pnfs_ld_read_whole_page(struct inode *inode)
|
|
|
+{
|
|
|
+ return false;
|
|
|
+}
|
|
|
+
|
|
|
static inline bool
|
|
|
pnfs_roc(struct inode *ino)
|
|
|
{
|