};
-struct ll_inode_md {
- struct mds_body *body;
- struct lov_mds_md *md;
+struct ll_read_inode2_cookie {
+ struct mds_body *lic_body;
+ struct lov_mds_md *lic_lmm;
};
#define LL_IOC_GETFLAGS _IOR ('f', 151, long)
char *lli_symlink_name;
struct lustre_handle lli_intent_lock_handle;
struct semaphore lli_open_sem;
- struct list_head lli_osc_locks;
};
#define LL_SUPER_MAGIC 0x0BD00BD0
#define LL_COMMITCBD_STOPPED 0x2
#define LL_COMMITCBD_RUNNING 0x4
+#define LL_SBI_NOLCK 0x1
+
struct ll_sb_info {
- unsigned char ll_sb_uuid[37];
+ obd_uuid_t ll_sb_uuid;
struct lustre_handle ll_mdc_conn;
struct lustre_handle ll_osc_conn;
obd_id ll_rootino; /* number of root inode */
-
+
+ int ll_flags;
wait_queue_head_t ll_commitcbd_waitq;
wait_queue_head_t ll_commitcbd_ctl_waitq;
int ll_commitcbd_flags;
inode->i_mode & S_IFMT);
}
+static inline int ll_mds_easize(struct super_block *sb)
+{
+ return sbi2mdc(ll_s2sbi(sb))->cl_max_mds_easize;
+}
+
+static inline int ll_ost_easize(struct super_block *sb)
+{
+ return sbi2mdc(ll_s2sbi(sb))->cl_max_ost_easize;
+}
+
/* namei.c */
int ll_lock(struct inode *dir, struct dentry *dentry,
struct lookup_intent *it, struct lustre_handle *lockh);
struct lustre_handle **);
int ll_size_unlock(struct inode *, struct lov_stripe_md *, int mode,
struct lustre_handle *);
+int ll_file_size(struct inode *inode, struct lov_stripe_md *md);
/* rw.c */
struct page *ll_getpage(struct inode *inode, unsigned long offset,