Whamcloud - gitweb
b=2192
authorphil <phil>
Mon, 24 Nov 2003 00:24:53 +0000 (00:24 +0000)
committerphil <phil>
Mon, 24 Nov 2003 00:24:53 +0000 (00:24 +0000)
ll_inode_getattr (-> ll_lsm_getattr) now takes an obdo, which it fills with the
attributes.  The caller is responsible, if it wishes, for updating the fields
in the inode, and the one previous caller now contains that extra code.  We'll
see whether additional abstraction is required during the KMS work.

This is a prerequisite for the first 30% of the KMS that we decided to do as a
fix for this bug.

lustre/llite/llite_internal.h

index a57bcb6..a1d8faa 100644 (file)
@@ -154,6 +154,7 @@ int ll_extent_unlock(struct ll_file_data *, struct inode *,
                      struct lov_stripe_md *, int mode, struct lustre_handle *);
 int ll_file_open(struct inode *inode, struct file *file);
 int ll_file_release(struct inode *inode, struct file *file);
+int ll_lsm_getattr(struct obd_export *, struct lov_stripe_md *, struct obdo *);
 int ll_extent_lock_no_validate(struct ll_file_data *, struct inode *,
                                struct lov_stripe_md *, int mode,
                                struct ldlm_extent *, struct lustre_handle *,