Whamcloud - gitweb
Poisoning of all cookies at free time (to work around slab cache bug, and
authoradilger <adilger>
Fri, 11 Oct 2002 11:01:40 +0000 (11:01 +0000)
committeradilger <adilger>
Fri, 11 Oct 2002 11:01:40 +0000 (11:01 +0000)
also potential problems when we don't have CONFIG_DEBUG_SLAB enabled.
Rename OBD_PUNCH_EOF as OBD_OBJECT_EOF, since we use it in places other
than punch.

lustre/obdfilter/filter.c
lustre/osc/osc_request.c

index 58f0669..b65b305 100644 (file)
@@ -720,7 +720,7 @@ static int filter_truncate(struct lustre_handle *conn, struct obdo *oa,
         int error;
         ENTRY;
 
-        if (end != OBD_PUNCH_EOF)
+        if (end != OBD_OBJECT_EOF)
                 CERROR("PUNCH not supported, only truncate works\n");
 
         CDEBUG(D_INODE, "calling truncate for object "LPX64", valid = %x, "
index 61adb9e..8801d81 100644 (file)
@@ -626,7 +626,7 @@ static int osc_enqueue(struct lustre_handle *connh, struct lov_stripe_md *lsm,
         /* Filesystem locks are given a bit of special treatment: if
          * this is not a file size lock (which has end == -1), we
          * fixup the lock to start and end on page boundaries. */
-        if (extent->end != OBD_PUNCH_EOF) {
+        if (extent->end != OBD_OBJECT_EOF) {
                 extent->start &= PAGE_MASK;
                 extent->end = (extent->end + PAGE_SIZE - 1) & PAGE_MASK;
         }